home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / borland / blx11.zip / STDWIN.H < prev    next >
Text File  |  1991-01-21  |  917b  |  26 lines

  1. #include<windows.h>
  2. #include"winapp.h"
  3. #if !defined(STDWIN_H)
  4. /* STDWIN:  A class derived from Window. This class
  5.     creates a standard, overlapped Window with Scroll bars. */
  6. class WinAppStdWindow : public Window {
  7. public:
  8.     WinAppStdWindow(WinApp *myApp, WinClass *wc,
  9.                                     char *name) : Window(myApp,wc) {
  10.         // StdWindow class settings
  11.         AddClassStyle(CS_HREDRAW | CS_VREDRAW);
  12.         // Window settings
  13.         AddWinStyle(WS_BORDER | WS_CAPTION | WS_OVERLAPPEDWINDOW |
  14.                              WS_MAXIMIZEBOX | WS_MINIMIZEBOX | WS_SYSMENU |
  15.                              WS_THICKFRAME | WS_VISIBLE);
  16.        SetWinInstance(myApp->GetInstance());
  17.        SetWinX(CW_USEDEFAULT);
  18.        SetWinY(CW_USEDEFAULT);
  19.        SetWinWidth(CW_USEDEFAULT);
  20.        SetWinHeight(CW_USEDEFAULT);
  21.        SetWinName(name);
  22.     }
  23. };
  24. #define STDWIN_H
  25. #endif
  26.